/*******************************************************************************
 * Copyright (c) 2013 Zero Square LLC.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Zero Square LLC. Version 1
 * which accompanies this distribution
 ******************************************************************************/
package com.zsqr.dashboard.commons.dao;

import java.io.Serializable;
import java.util.List;

/**
 * Generic Interface for Data Access Object to be extends or implement
 * contain common persistence method
 * @author Saurabh
 *
 */

public interface GenericDao <T, ID extends Serializable >{
	
	T save (T entity);
	T update (T entity);
	void delete (T entity);
	T findById (ID id);
	List<T> findAll();
	void flush();

}
